package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dao.CityMapper;
import com.tencent.wxcloudrun.model.City;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: CityService
 * Package: com.tencent.wxcloudrun.service
 * Description:
 *
 * @Date: 2023/1/23 2:04 PM
 * @Author: wht
 */
@Slf4j
@Service
public class CityService {
    @Autowired
    CityMapper cityMapper;

    public void addOneCity(City city) {
        cityMapper.addOneCity(city);
    }

    public void updateOneCityById(City city) {
        cityMapper.updateOneCityById(city);
    }

    public List<City> getCityList(City city) {
        return cityMapper.getCityList(city);
    }
//    public List<City> getAllCities() {
//        return cityMapper.getAllCities();
//    }
//
//    public City getOneCityById(Integer id) {
//        return cityMapper.getOneCityById(id);
//    }
}
